package com.bstek.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.bstek.demo.entity.Employee;
import com.bstek.demo.service.EmployeeService;
import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.data.provider.Page;
/**
 * 员工Controller层
 * @author lemon
 *
 */
@Component
public class EmployeeController {

	@Autowired EmployeeService employeeService;
	/**
	 * 获取员工信息
	 * @author lemon
	 * @param page dorado封装的分页参数
	 */
	@DataProvider
	public void getEmployee(Page<Employee> page) {
		employeeService.getEmployee(page);
	}
	
	
	
	
}
